<%@ page contentType="text/html; charset=utf-8" language="java" import="mybean.BookBean" %>
<jsp:useBean id="curBook" class="mybean.BookBean"></jsp:useBean>
<%
	String imgPath = request.getRealPath("/");
%>
<html>
<style type="text/css">
<!--
body{
	font-family:宋体,微软雅黑,华文行楷,华文琥珀,华文彩云 ;
	font-size:px;
}
.myred {
	font-size: larger;
	font-weight: bold;
	color: #FF0000;
}
.myblack {
	font-size: 14q
}
.STYLE34 {color: #FF0000}
.STYLE36 {
	font-size: 36px;
	font-weight: bold;
	color:white;
}
.STYLE38 {
	font-size: 18px;
	color: #0033FF;
}
.word_white{
	color: #f0ffff;
}
	a{
    color:#337ab7;
    text-decoration:none;
    }
    
    
    
    .a_1 a{
    color:#fff;
    text-decoration:none;
    }
-->
</style>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登陆页面</title>


</head>
<body background="">
<table  height="" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr height="120">
    <td height="120" colspan="3"  >
		<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" height="120">
  			<tr>
    			<td  valign="top" background="images/head.jpg" bgcolor="#EEEEEE">
    				<table width="100%" height="30"  border="0" cellpadding="0" cellspacing="0">
	      				<tr>
	        				<td width="81%" height="10"></td>
	        				<td colspan="2"></td>
	     				</tr>
	      				<tr>
					        <td height="20">&nbsp;</td>
					        <td width="10%">
					        	<form action="<%=request.getContextPath()%>/login.jsp" >							         
							         <input name="submit" type="submit" class="myblack" id="submit" value="登录" />
							    </form>
					        </td>
					        <td width="9%">				        
					        	<form action="<%=request.getContextPath()%>/logaction" >							         
							         <input name="submit" type="submit" class="myblack" id="submit" value="退出" />
							    </form>
					        </td>
					    </tr>
    				</table>
      				<table width="93%" height="69"  border="0" cellpadding="0" cellspacing="0">
				        <tr>
				          <td height="69" align="right" valign="bottom"><%-- <%=chStr.toChinese(manager)%> --%>
				          <%
							String realname = (String)session.getAttribute("realname");
							if(realname == null || realname.equals("")){
								out.print("您还未登陆，请先登陆 。");
							}else{
								out.print("欢迎你，"+realname);
							}
						%>
				          </td>
				        </tr>
    				</table>
    			</td>
  			</tr>
		</table>		

	</td>
  </tr>
  
  <tr align="center">  
  	<td>
		<table width="1000"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#236B8E">
		      <tr bgcolor="#c0D9D9">
		        <td width="3%" height="27">&nbsp;</td>
		        <td width="29%"><!--<div id="bgclock" class="word_white">--></td>
				<script language="javascript">
					function quit(){
						if(confirm("真的要退出系统吗?")){
							window.location.href="logout.jsp";
						}
					}
				</script>
		        <td width="66%" align="right" bgcolor="#337ab7" class="word_white"><div class="a_1">
			        <p align="center" style="color:white"><font size="3" color="white">
	    				<a href="#">首页</a>&nbsp;|&nbsp;<a href="login.jsp">管理员入口</a>&nbsp;|&nbsp;         
			          	<a href="user/register.jsp">注册新用户</a>&nbsp;|&nbsp;	<a href="user/findpw.jsp">找回密码</a>
			         
	    			</font></p></div>
			    </td>
		        <td width="2%" bgcolor="#337ab7">&nbsp;</td>
		  	</tr>
		    <tr bgcolor="#c0D9D9">
		        <td height="9" colspan="4" background="Images/navigation_bg_bottom.gif"></td>
		    </tr>
		</table>  
	</td>
  </tr>
  <tr height="10">
  <td  height="20"></td>
  </tr>
 
  <tr align="center" margin="50">
  	<td>
	  <table   border="1" cellpadding="1" cellspacing="1" bordercolor="#588a9f">
	  	<tr>
		    <td width="129" height="516" rowspan="2" align="center" valign="top" bgcolor="#FFFFFF">
			    <table width="100" height="516" border="0">
			      <tr align="center" valign="top" bgcolor="#FFFFFF">
			        <td width="175"><br />
			          <span class="STYLE13"><img src="images/shopcar.jpg"" alt="购物车" width="60" height="53" longdesc="images/top1.jpg" /><br />
			          <a href="orders/orderlst.jsp">购物车</a></span><br /></td>
			      </tr>
			      <tr align="center" valign="top" bgcolor="#FFFFFF">
			        <td><span class="STYLE13"><img src="images/user.jpg" alt="用户信息" width="60" height="53" longdesc="images/top2.jpg" /><br />
					<a href="user/userinfor.jsp">用户信息</a><br /><br /></span></td>
			      </tr>
			     
			      <tr align="center" valign="top" bgcolor="#FFFFFF">
			        <td><span class="STYLE20"><span class="STYLE13"><img src="images/search.jpg" alt="书的搜索" width="62" height="59" longdesc="images/top4.jpg" /><br />
			              <a href="search_book.jsp">书的搜索</a></span></span></td>
			      </tr>	 
			       <tr align="center" valign="top" bgcolor="#FFFFFF">
			        <td><span class="STYLE20"><span class="STYLE13"><img src="images/sale.png" alt="我是卖家" width="59" height="58" longdesc="images/top3.jpg" /><br />
				<a href="saler/saleBook.jsp"> 我是卖家</a> <br /><br /></span></span></td>
			      </tr>     
			      <tr align="center" valign="top" bgcolor="#FFFFFF">
							<td>
								<span class="STYLE20"><span class="STYLE13"><img
											src="images/yan.jpg" alt="预定留言板" width="62" height="59"
											longdesc="images/yan.jpg" />
										<br /> <a href="main.jsp">预定留言板</a>
								</span>
								</span>
							</td>
						</tr>
			    </table>
		    </td>	   
		    <td height="25" bgcolor="#337ab7" >
			    <table  >
				    <tr>
				    	<td align="center"><span class="STYLE36">热力推荐</span></td>					    
					</tr>
					<tr>
					    <td width="853" height="515" valign="top" bgcolor="#FFFFFF"><%=curBook.getCommendTable(imgPath) %></td>
					</tr>
				</table>
			</td>
		</tr>
	  </table>
	</td>
  </tr>
  
</table>
</body>
</html>




